#include "applyaddpeople.h"
#include "ui_applyaddpeople.h"

applyaddpeople::applyaddpeople(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::applyaddpeople)
{
    ui->setupUi(this);
}

applyaddpeople::~applyaddpeople()
{
    delete ui;
}

void applyaddpeople::init(QString im, QString ac, QString na)
{
    image=im;
    account=ac;
    name=na;
    ui->account->setText(account);
    ui->name->setText(name);
    ui->image->setIcon(QPixmap(image));
}

void applyaddpeople::on_sendbtn_clicked()
{
    emit sendextrames(ui->plainTextEdit->toPlainText());
    ui->plainTextEdit->clear();
    close();
}


void applyaddpeople::on_deletebtn_clicked()
{
    close();
}

